#ifndef SQLITEPOOL_H
#define SQLITEPOOL_H

#include <QObject>

#include <QSqlDatabase>
#include <QSqlError>
#include <QSqlQuery>
#include <QSqlRecord>

#include <QMutex>
#include <QDebug>

class SQLitePool : public QObject
{
    Q_OBJECT

public:

    static SQLitePool* getInstance(QObject *parent);
    static SQLitePool* m_Instance;
    static QMutex m_mutex;

    // 重置本地料单数据库
    void reset_Order_Process_List_Database();

    // 本地料单数据库对象
    QSqlDatabase* get_Order_Process_List_DataBase();

private:

    SQLitePool(QObject *parent = nullptr);
    ~SQLitePool();
    SQLitePool(const SQLitePool&)=delete;
    SQLitePool &operator=(const SQLitePool)=delete;

    QSqlDatabase* m_Order_Process_List_Database = nullptr;

signals:
};

#endif // SQLITEPOOL_H
